<?php

namespace App\Http\Controllers\Admin;

use Illuminate\Http\Request;
use App\Models\OrdersLog;

class OrdersLogController extends Controller
{

    /**
     * Display a listing of the resource.
     *
     * @return \Illuminate\Http\Response
     */
    public function index(Request $request, Orderslog $orderslog)
    {
        $orders_logs = $orderslog->filter($request->all())->orderBy('id','desc')->paginate(config('api.page.limit'));
        $time = $request->time;
        $ordersn = $request->ordersn;
        return view('admins.orderslog.index')->with('orders_logs',$orders_logs)->with('ordersn',$ordersn);
    }

}
